#!/bin/bash
# changing the ifs value

IFS.OLD=$IFS
IFS=$'\n'
for entry in $(cat /etc/passwd); do
    echo "Values in $entry -"
    echo "-----------$IFS"
    IFS=:
    for value in $entry; do
        echo "  $value"
    done
    echo "############$IFS"
done
